package com.hgh.designmodel.builder;

import java.util.Date;

/**
 * @author: huguanghui
 * Created by huguanghui on 2018/7/1.
 * @Description: 重叠构造
 */
public class Student2 {

    private String name;
    private int age;
    private int sex;
    private String address;
    private Date birth;

    public Student2(String name) {
        this(name,11,1,"ningbo",new Date());
    }


    public Student2(String name,int age) {
        this(name,age,1,"ningbo",new Date());
    }



    public Student2(String name, int age, int sex, String address, Date birth) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.address = address;
        this.birth = birth;
    }
}
